﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;

namespace JAWWS
{
    class BallNode : SceneGraphNode
    {
        public Ball b;

        public BallNode(MainForm main)
        {
            this.child = null;
            this.sibling = null;
            this.b = new Ball(main);
            this.LocalTransMatrix = this.IdMatrix;
        }
        public override void draw()
        {
           //any transformations and store them in LocalTransMatrix
           //set materials/colors/Textures
            GL.glEnable(GLenum.GL_TEXTURE_2D);          
            GL.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
            GL.glScalef(2.0f, 2.0f, 2.0f);
            GL.glBindTexture(GLenum.GL_TEXTURE_2D, b.texID);
            b.draw();
            GL.glDisable(GLenum.GL_TEXTURE_2D);     
        }
    }
}
